<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<div class="listing_item row2">
    <div class="listing_item_title">
        <a href="{$aListing.url}">{$aListing.title}</a>
    </div>
    <div class="listing_item_image">
        <a href="{$aListing.url}" title="{$aListing.title}">{img server_id=$aListing.server_id title=$aListing.title path='marketplace.url_image' file=$aListing.image_path suffix='_400' max_height='400' max_width='206'}</a>
    </div>
    <div class="listing_item_action comment_mini_link_like">
        <ul>
            <li>
                <a href="#" onclick="return false;" class="js_like_link_like">{$aListing.total_like}</a>
            </li>
            <li class="map_link">
                <a href="#" onclick="showListingStoreMap('{$aListing.listing_id}');return false;" class="js_feed_entry_location no_ajax_link"></a>
                <div id="js_map_listing_{$aListing.listing_id}" class="map_store" style="display: none;">                    
                    <div class="beeperNub"></div>
                    <div id="js_map_listing_content_{$aListing.listing_id}" class="js_map_content">
                        <img style="margin: auto;" src="{param var='core.path'}theme/frontend/default/style/default/image/layout/loading.gif"/>
                    </div>
                 </div>
            </li>

            <li>
                <a href="javascript:void(0)" class="js_feed_entry_add_comment no_ajax_link">{$aListing.total_comment}</a>
            </li>				


        </ul>
        <div class="clear"></div>		
    </div>  
    <div class="listing_item_price">
        {if $aListing.price == '0.00'}
            {phrase var='marketplace.free'}
        {else}
            {$aListing.price|number_format:0} {if $aListing.currency_id == 'USD'}USD{else}Đồng{/if}
        {/if}
    </div>
    <div class="listing_item_user">
        <div class="activity_feed_image">	
            {img user=$aListing suffix='_50_square' max_width='32' max_height='32'}
        </div>
        <div class="activity_feed_content_info">
            {$aListing|user:'':'':50}
            <p class="feed_entry_time_stamp">				
                {$aListing.time_stamp|date:'marketplace.marketplace_view_time_stamp'}
            </p>
        </div>
    </div>
    <div class="listing_item_content">
        {$aListing.description|parse|shorten:150:'...'}
    </div>
</div>